package analysis;

import java.util.ArrayList;

import objects.DistanceLog;

public class DistanceRecord extends Record{
	private ArrayList<DistanceLog> dailydistancelogs;

        public DistanceRecord() {
                super();
                dailydistancelogs = new ArrayList<DistanceLog>();
        }

	public void setDistancelogs(ArrayList<DistanceLog> dailydistancelogs) {
		this.dailydistancelogs = dailydistancelogs;
	}

	public ArrayList<DistanceLog> getDistancelogs() {
		return dailydistancelogs;
	}
        @Override
		public void display(){
                super.display();
        }

        @Override
		public void displayLogs() {
                if (dailydistancelogs.size() > 0)
                {
                        for(DistanceLog l : dailydistancelogs) {
                                l.display();
                        }
                }
        }
}
